﻿<!DOCTYPE html>
<html>
<head>
   <title>VI-DriveSim environment configuration</title>
   <meta name="generator" content="Help & Manual">
   <meta name="keywords" content="">
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   <link type="text/css" href="default.css" rel="stylesheet">
   <link type="text/css" href="custom.css" rel="stylesheet">
   <script type="text/javascript" src="nsh.js"></script>
   
<!-- non-scrolling headers for CHM and browser-based help, local styles-->
<style TYPE="text/css" media="screen"> 
   <!-- 
   body {    
      margin:0; 
      padding:0; 
      overflow: auto; 
      background: #edede9; 
   } 
   #idheader { 
      width:100%; 
      height:auto; 
      padding: 0; 
      margin: 0;     
} 
    #idheaderbg  {
    background: #E40A00; 
}
#idheadernowrap  {
    white-space:nowrap; 
}
    ul {list-style-type: lower-roman}
   -->
   </style>
   
<style TYPE="text/css" MEDIA="print">
<!--
/* Hide navigation links and add space between header
     and text in the printed version. Not valid for eBooks. */
#idnav { display:none;	 }
.topichead { padding: 5px 5px 20px 5px; }
-->
</style>   
   <script type="text/javascript" src="jquery.js"></script>
   <script type="text/javascript" src="helpman_settings.js"></script>
   <script type="text/javascript" src="helpman_topicinit.js"></script>

   <script type="text/javascript">
     HMSyncTOC("index.html", "drvsim_tut_drvsim_name_environment_config.htm");
   </script>
   <script type="text/javascript" src="highlight.js"></script>
   <script type="text/javascript">
     $(document).ready(function(){highlight();});
   </script>
</head>
<body>

<!--ZOOMSTOP-->

<div id="idheader" >
<div id="idheaderbg">
<table width="100%" border="0" cellspacing="0" cellpadding="0" 
       style="margin: 0px; color: #D7D7D7;">

  <tr valign="middle">
    <td align="left" valign="middle" class="topichead">
    <!--<div id="idheadernowrap">-->
    <p class="crumbs" id="idnav"><b>Navigation:</b>&nbsp;
   
   VI-DriveSim 19.2 on Windows &gt; VI-DriveSim 19.2 Tutorials &gt; <a href="drvsim_tut_running_ni-pxi_simulation_with.htm">Running NI-PXI simulation with VI-DriveSim on Windows</a>&nbsp;&gt;</p>
      <h1 class="p_Heading1" style="page-break-after: avoid;"><span class="f_Heading1">VI-DriveSim environment configuration</span></h1>

    <!--</div>-->
    </td>
    <td align="right" width="180" valign="middle" class="topichead" id="idnav">
    <div id="idheadernowrap">
    <a href="javascript: print();"
    		onmouseover="document.images.prntr.src='print_a.png'" 
        onmouseout="document.images.prntr.src='print_n.png'"
        ><img name="prntr" border="0" alt="Print this Topic" title="Print this Topic" src="print_n.png"
        ></a>&nbsp;&nbsp;
     <a href="drvsim_tut_creating_the_drvsim_name_simul.htm"
        onmouseover="document.images.prev.src='back_a.png'" 
        onmouseout="document.images.prev.src='back_n.png'"
        ><img name=prev src="back_n.png" border=0 alt="Previous page"
        ></a><a href="drvsim_tut_running_ni-pxi_simulation_with.htm"
        onmouseover="document.images.main.src='top_a.png'" 
        onmouseout="document.images.main.src='top_n.png'"><img name=main src="top_n.png" border=0 alt="Return to chapter overview"
        ></a><a href="drvsim_active_extensions.htm"
        onmouseover="document.images.next.src='next_a.png'" 
        onmouseout="document.images.next.src='next_n.png'"><img name=next src="next_n.png" border=0 alt="Next page"
        ></a>
    </div>
    </td>
  </tr>
</table>
</div>

<!-- The following code displays Expand All/Collapse All links  below the header in topics containing toggles -->
  

</div>  



<div id="idcontent"><div id="innerdiv"> 
<!--ZOOMRESTART-->
<p class="p_Normal">The configuration of the VI-DriveSim environment consists in the definition of the following VI-DriveSim modules and parameters, explained in the next sections of this paragraph:</p>
<p class="p_Normal">&nbsp;</p>
<p style="text-align: justify; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">&#8226;</span><span style="font-weight: bold;">iodb_udp;</span></p><p style="text-align: justify; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">&#8226;</span><span style="font-weight: bold;">iodb_remote_crt;</span></p><p style="text-align: justify; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">&#8226;</span><span style="font-weight: bold;">iodb_hwmap</span>;</p><p style="text-align: justify; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">&#8226;</span><span style="font-weight: bold;">VI-CRT Inputs definition;</span></p><p class="p_Normal">&nbsp;</p>
<p class="p_Normal"><span style="font-size: 12pt; font-weight: bold;">iodb_udp</span></p>
<p class="p_Normal">The only parameter that has to be set for this module is the IP address of the VI-DriveSim machine, as reported in the figure below.</p>
<p class="p_Normal">&nbsp;</p>
<p class="p_Normal" style="text-align: center;"><img alt="drvsim_nipxi_udp" width="973" height="510" style="margin:0px auto 0px auto;width:973px;height:510px;border:none" src="drvsim_nipxi_udp.png"/></p>
<p class="p_Normal" style="text-align: left;">&nbsp;</p>
<p class="p_Normal" style="text-align: left;">&nbsp;</p>
<p class="p_Normal" style="text-align: left;"><span style="font-size: 12pt; font-weight: bold;">iodb_remotecrt</span></p>
<p class="p_Normal" style="text-align: left;">This is the module that allows the communication between VI-CarRealTime and VI-DriveSim. The communication is based on a UDP communication protocol, so the definition of the IP address and the ports number is needed, as reported in the figure below.</p>
<p class="p_Normal" style="text-align: left;">&nbsp;</p>
<p class="p_Normal">&nbsp;</p>
<p class="p_Normal" style="text-align: center;"><img alt="drvsim_nipxi_remotecrt" width="973" height="546" style="margin:0px auto 0px auto;width:973px;height:546px;border:none" src="drvsim_nipxi_remotecrt.png"/></p>
<p class="p_Normal" style="text-align: center;">&nbsp;</p>
<p class="p_Normal">A brief description of the module’s parameters is presented below:</p>
<p class="p_Normal">• &nbsp; &nbsp; &nbsp; &nbsp;VIDRIVESIM_REMOTECRT_IP: this field contain the IP address of the machine where VI-CarRealTime runs, that is the IP address of the NI-PXI machine (192.168.100.50 in this example);</p>
<p class="p_Normal">• &nbsp; &nbsp; &nbsp; &nbsp;VIDRIVESIM_REMOTECRT_CLIENTPORT: client port number, where the VI-CarRealTime output channels are sent;</p>
<p class="p_Normal">• &nbsp; &nbsp; &nbsp; &nbsp;VIDRIVESIM_REMOTECRT_SERVERPORT: server port number, where the VI-CarRealTime inputs from VI-DriveSim are received. </p>
<p class="p_Normal">&nbsp;</p>
<p class="p_Normal">The ports numbers <span style="font-weight: bold;">must</span> be the same as the auxiliary subsystem of VI-CarRealTime and if the default values are used in the VI-CarRealTime model, these values must not be changed.</p>
<p class="p_Normal">&nbsp;</p>
<p class="p_Normal">&nbsp;</p>
<p class="p_Normal"><span style="font-size: 12pt; font-weight: bold;">iodb_hwmap</span></p>
<p class="p_Normal">The definition of these parameters is made only by VI-grade's authorized personnel, so the only change that the user can do is insert the correct name of the cockpit that enables the writing of the VI-CarRealTime user inputs, needed for this application. Typically the correct name is &quot;*_USER&quot;, where * stands for the name of the cockpit utilized. Anyway the correct name is indicated by VI-grade when the driving simulator will be installed. </p>
<p class="p_Normal">All the others parameters must not be changed.</p>
<p class="p_Normal">&nbsp;</p>
<p class="p_Normal" style="text-align: center;"><img alt="drvsim_nipxi_hwmap" width="973" height="337" style="margin:0px auto 0px auto;width:973px;height:337px;border:none" src="drvsim_nipxi_hwmap.png"/></p>
<p class="p_Normal" style="text-align: center;">&nbsp;</p>
<p class="p_Normal" style="text-align: center;">&nbsp;</p>
<p class="p_Normal" style="text-align: left;"><span style="font-size: 12pt; font-weight: bold;">VI-CRT Inputs definition</span></p>
<p class="p_Normal" style="text-align: left;">Only the following <span style="font-style: italic;">VI-CRT Inputs </span>must be enabled.</p>
<p class="p_Normal" style="text-align: left;">&nbsp;</p>
<p class="p_Normal">&nbsp;</p>
<p class="p_Normal" style="text-align: center;"><img alt="drvsim_nipxi_vicrt_inputs" width="973" height="720" style="margin:0px auto 0px auto;width:973px;height:720px;border:none" src="drvsim_nipxi_vicrt_inputs.png"/></p>
<p class="p_Normal" style="text-align: center;">&nbsp;</p>
<p class="p_Normal" style="text-align: center;">&nbsp;</p>
<p class="p_Normal" style="text-align: center;">&nbsp;</p>
<p class="p_Normal" style="text-align: left;">When all the modules are correctly set, click <span style="font-style: italic;">Save Config</span> and run VI-GraphSim on the host machines, then it is possible to run the simulation from the NI-PXI machine and then start the VI-DriveSim simulation.</p>
<p class="p_Normal" style="text-align: left;">&nbsp;</p>
<p class="p_Normal" style="text-align: left;">&nbsp;</p>
<p class="p_Normal">&nbsp;</p>
<p class="p_Normal" style="text-align: center;"><img alt="drvsim_nipxi_save" width="973" height="246" style="margin:0px auto 0px auto;width:973px;height:246px;border:none" src="drvsim_nipxi_save.png"/></p>

<!--ZOOMSTOP-->
</div></div>
<script type="text/javascript"> 
<!-- 
var lastSlashPos = document.URL.lastIndexOf("/") >
document.URL.lastIndexOf("\\") ? document.URL.lastIndexOf("/") :
document.URL.lastIndexOf("\\");
if( document.URL.substring( lastSlashPos + 1, lastSlashPos + 4
).toLowerCase() != "~hh" )
{
    nsrInit();
}
--> 
</script> 
</body>
</html>
